package day11;

public class 循环列表测试 {
    public static void main(String[] args) throws Exception {
        CircleSqQueue<String> csq = new CircleSqQueue<>(5);
        csq.offer("a");
        csq.offer("b");
        csq.offer("c");
        csq.offer("d");
        System.out.println("循环列队中的元素个数：" + csq.length());
        csq.display();
        csq.poll();
        csq.poll();
        csq.offer("e");
        System.out.println("\n出队列2个元素，进队列1个元素，循环队列中的元素个数：" + csq.length());
        csq.display();
    }

}
